﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using Infraestructure.CrossCutting.Parsering;
using System.IO;

namespace Infraestructure.CrossCutting.NetFramework.Parsering
{
    public class ParserTxtSeparatedBySemicolons: ParserBase,  IParseBehavior
    {
        private const char SEPARATOR = ';';

        public List<ArrayList> Parse(string fileName)
        {
            if (!File.Exists(fileName))
            {
                throw new ArgumentException(string.Format(Resources.Messages.exception_InvalidPath, fileName));
            }

            return this.GetLinesTxtSeparared(fileName, SEPARATOR);
        }
    }
}
